package cn.nubia.admin.application.service;

import cn.nubia.admin.application.bean.Fireware;
import cn.nubia.admin.common.mybatis.bean.Query;
import cn.nubia.admin.common.mybatis.service.BaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * Created by justin on 15/7/12.
 */
@Service
public class FirewareService extends BaseServiceImpl<Fireware>{


    public String getFirewareNameByFirewareSDK(Integer sdkId){
        if(sdkId ==null)return "";
        Query query = Query.build(Fireware.class);
        query.addEq(Fireware.COLUMN_FIREWARESDK,sdkId);
        Fireware fireware = get(query);
        if(fireware!=null)return fireware.getFirewareName();
        return "";
    }

}
